<template>
    <div class="v-header">
        <slot>
            <div class="logo">
                <i class="dzzw-icon-outline icon-knowledge"></i>
                {{website.name}}
            </div>
            <!--<router-link class="toback" to="/">首页</router-link>-->
        </slot>
    </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
    name: "vHeader",
    data() {
        return {};
    },
    computed: {
        ...mapGetters(["website"])
    },
    mounted() {},
    methods: {}
};
</script>
<style lang="scss" scoped>
@import "~_s/variables";
@import "~_s/placeholders";
.v-header {
    @extend %fullsize;
    line-height: 50px;
    display: flex;

    justify-content: space-between;
    .logo {
        color: map-get($colors, "white");
        width: 150px;
        display: inline-block;
        vertical-align: middle;
    }
    .toback {
        color: map-get($colors, "white");
        font-size: $font-size-medium;
        float: right;
    }
}
</style>
